package com.woniu.common;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class BaseInfo {
    public static final String SUCCESS_MESSAGE = "success";
    public static final String ERROR_MESSAGE = "success";
    public static final int SUCCESS_CODE = 200;
    public static final int ERROR_CODE = 500;

    @ApiModelProperty(value = "结果信息", position = 1)
    @JSONField(ordinal = 1)
    private String message = SUCCESS_MESSAGE;
    @ApiModelProperty(value = "状态码", position = 2)
    @JSONField(ordinal = 2)
    private int status = SUCCESS_CODE;

}
